const express = require('express');
const router = express.Router();
const orderController = require('../controllers/order.server.controller');

router.get('/loadHistoryOrders', orderController.loadHistoryOrders);
router.get('/loadNewOrders', orderController.loadNewOrders)
      .put('/:oid',orderController.auditOrders)
      .get('/:oid',orderController.loadOrdersDetails)
router.get('/complain/loadComplain',orderController.loadComplain);
router.get('/newOrders/size',orderController.newOrders)


module.exports = router;